#include "PDTExpNumUn.h"
#include "PDTCodeGraph.h"

void PDTExpNumUn::setOperand (PDTExpNum &operand){
	writers[0]=&operand;
	addChild(&operand);
	operand.addReader(this);
	operand.addParent(this);
}
PDTExpNum *PDTExpNumUn::getOperand (){
	return dynamic_cast<PDTExpNumUn*>(writers[0]);
}


PDTExpNumUn::PDTExpNumUn(PDTCodeGraph & CG,PDTExpNum &operand):PDTExpNum(CG){
	addWriter(&operand);
	addChild(&operand);
	operand.addReader(this);
	operand.addParent(this);
}
